common/models/entities/User.php
public static function isExistByEmail( $email ) {

		$user = self::find()->where( 'email=:email', [ ':email' => $email ] )->one();

		return isset( $user );
	}
public static function isExistByEmail( $email ) {

		$user = self::find()->where( 'email=:email', [ ':email' => $email ] )->one();

		return isset( $user );
	}
public static function isExistByEmail ( $ email ) { $ user = self :: find ( ) -> where ( 'email=:email' , [ ':email' => $ email ] ) -> one ( ) ; return isset ( $ user ) ; }
Check whether user exist for given email.

@param string $email
@return boolean
Check whether user exist for given email .