Its a Boolean value its never returns error.
Even if you set true how you gonna proceed further without entering credentials.(are passing credential twice (for both case)?)
Not sure why Image exist not effective it works for me every time.
or you can use On element appear or On image appear
anyways i assume you checked below post.