public function validateEmail($email)
    {
        $person = $this->getService('repos:people.person')->find(array('email' => $email));

        if ($person) {
            $this->setMessage('Email is already in use');
            return false;
        }

        return true;
    }
public function validateEmail($email)
    {
        $person = $this->getService('repos:people.person')->find(array('email' => $email));

        if ($person) {
            $this->setMessage('Email is already in use');
            return false;
        }

        return true;
    }
public function validateEmail ( $ email ) { $ person = $ this -> getService ( 'repos:people.person' ) -> find ( array ( 'email' => $ email ) ) ; if ( $ person ) { $ this -> setMessage ( 'Email is already in use' ) ; return false ; } return true ; }
Validates an email.

@param string $email Email to validate

@return bool
Validates an email .