/** * Return true if this user has a password. * * @return boolean */ public function hasPassword() { return $this->definition->hasPassword($this); }