public static function isEmailValid($postedParam) 
	{
		$isEmailEmpty = true;	
		$isValidEmail  = false;

		if(isset($postedParam['email'])) {

			$isEmailEmpty = CheckoutApi_Lib_Validator::isEmpty($postedParam['email']);

		}

		if(!$isEmailEmpty) {

			$isValidEmail =  CheckoutApi_Lib_Validator::isValidEmail($postedParam['email']);

		}

		return !$isEmailEmpty && $isValidEmail;

	}
public static function isEmailValid($postedParam) 
	{
		$isEmailEmpty = true;	
		$isValidEmail  = false;

		if(isset($postedParam['email'])) {

			$isEmailEmpty = CheckoutApi_Lib_Validator::isEmpty($postedParam['email']);

		}

		if(!$isEmailEmpty) {

			$isValidEmail =  CheckoutApi_Lib_Validator::isValidEmail($postedParam['email']);

		}

		return !$isEmailEmpty && $isValidEmail;

	}
public static function isEmailValid ( $ postedParam ) { $ isEmailEmpty = true ; $ isValidEmail = false ; if ( isset ( $ postedParam [ 'email' ] ) ) { $ isEmailEmpty = CheckoutApi_Lib_Validator :: isEmpty ( $ postedParam [ 'email' ] ) ; } if ( ! $ isEmailEmpty ) { $ isValidEmail = CheckoutApi_Lib_Validator :: isValidEmail ( $ postedParam [ 'email' ] ) ; } return ! $ isEmailEmpty && $ isValidEmail ; }
A helper  method to check if email has been set in the payload and if it's a valid email
@param array $postedParam
@return boolean
CheckoutApi_ check if email valid
Simple usage:
CheckoutApi_Client_Validation_GW3::isEmailValid($postedParam);
A helper method to check if email has been set in the payload and if it s a valid email