code: public function existEmail(string $email): int
      {
          return (int) $this->connection->select(self::COLUMN_ID)
              ->from($this->tableIdentity)
              ->where(['email' => $email])
              ->fetchSingle();
      }
docs: Exist email.
  
  @param string $email
  @return int