original_string: public static function isCustomerPlanIdValid($postedParam)
  	{
  		$isCustomerPlanIdEmpty = true;
  		$isValidCustomerPlanId = false;
  
  		if(isset($postedParam['customerPlanId'])) {
  			$isCustomerPlanIdEmpty = CheckoutApi_Lib_Validator::isEmpty($postedParam['customerPlanId']);
  		}
  
  		if(!$isCustomerPlanIdEmpty) {
  
  			$isValidCustomerPlanId = CheckoutApi_Lib_Validator::isString($postedParam['customerPlanId']);
  		}
  
  		return !$isCustomerPlanIdEmpty && $isValidCustomerPlanId;
  	}
code: public static function isCustomerPlanIdValid($postedParam)
  	{
  		$isCustomerPlanIdEmpty = true;
  		$isValidCustomerPlanId = false;
  
  		if(isset($postedParam['customerPlanId'])) {
  			$isCustomerPlanIdEmpty = CheckoutApi_Lib_Validator::isEmpty($postedParam['customerPlanId']);
  		}
  
  		if(!$isCustomerPlanIdEmpty) {
  
  			$isValidCustomerPlanId = CheckoutApi_Lib_Validator::isString($postedParam['customerPlanId']);
  		}
  
  		return !$isCustomerPlanIdEmpty && $isValidCustomerPlanId;
  	}
code_tokens: public static function isCustomerPlanIdValid ( $ postedParam ) { $ isCustomerPlanIdEmpty = true ; $ isValidCustomerPlanId = false ; if ( isset ( $ postedParam [ 'customerPlanId' ] ) ) { $ isCustomerPlanIdEmpty = CheckoutApi_Lib_Validator :: isEmpty ( $ postedParam [ 'customerPlanId' ] ) ; } if ( ! $ isCustomerPlanIdEmpty ) { $ isValidCustomerPlanId = CheckoutApi_Lib_Validator :: isString ( $ postedParam [ 'customerPlanId' ] ) ; } return ! $ isCustomerPlanIdEmpty && $ isValidCustomerPlanId ; }
docstring: A helper method that check customer plan id is set in payload.
  @param $param
  @return bool
  Simple usage:
  CheckoutApi_Client_Validation_GW3::isCustomerPlanIdValid($param)
docstring_tokens: A helper method that check customer plan id is set in payload .