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