Newscoop\Entity\User::exists PHP Method

exists() public method

Check if the user exists Test if there is set an id
Deprecation: legacy from frontend controllers
public exists ( ) : boolean
return boolean
    public function exists()
    {
        return !is_null($this->id);
    }

Usage Example

 public function exists()
 {
     $this->__load();
     return parent::exists();
 }