original_string: protected function validateEmailExistsUser()
      {
          $field = 'email';
          $value = $this->getSubmitted($field);
  
          if ($this->isError($field) || !isset($value)) {
              return null;
          }
  
          $user = $this->user->getByEmail($value);
  
          if (empty($user['status'])) {
              $this->setErrorUnavailable($field, $this->translation->text('E-mail'));
              return false;
          }
  
          $this->setSubmitted($field, $user);
          return true;
      }
code: protected function validateEmailExistsUser()
      {
          $field = 'email';
          $value = $this->getSubmitted($field);
  
          if ($this->isError($field) || !isset($value)) {
              return null;
          }
  
          $user = $this->user->getByEmail($value);
  
          if (empty($user['status'])) {
              $this->setErrorUnavailable($field, $this->translation->text('E-mail'));
              return false;
          }
  
          $this->setSubmitted($field, $user);
          return true;
      }
code_tokens: protected function validateEmailExistsUser ( ) { $ field = 'email' ; $ value = $ this -> getSubmitted ( $ field ) ; if ( $ this -> isError ( $ field ) || ! isset ( $ value ) ) { return null ; } $ user = $ this -> user -> getByEmail ( $ value ) ; if ( empty ( $ user [ 'status' ] ) ) { $ this -> setErrorUnavailable ( $ field , $ this -> translation -> text ( 'E-mail' ) ) ; return false ; } $ this -> setSubmitted ( $ field , $ user ) ; return true ; }
docstring: Validates an email and checks the responding user enabled
  @return boolean|null
docstring_tokens: Validates an email and checks the responding user enabled