original_string: 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;
  
  	}
code: 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;
  
  	}
code_tokens: 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 ; }
docstring: 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);
docstring_tokens: A helper method to check if email has been set in the payload and if it s a valid email