Maybe you can change the name of the function po since isExisting means your expecting a boolean return. Based on this function it returns a resultset $user. Maybe you can replace it to getUser()