public static function isCardToken($param)
	{
		$isValid = false;

		if(isset($param['cardToken'])){
			$isTokenEmpty = CheckoutApi_Lib_Validator::isEmpty($param['cardToken']);

			if(!$isTokenEmpty) {
				$isValid = true;
			}
		}

		return $isValid;
	}
public static function isCardToken($param)
	{
		$isValid = false;

		if(isset($param['cardToken'])){
			$isTokenEmpty = CheckoutApi_Lib_Validator::isEmpty($param['cardToken']);

			if(!$isTokenEmpty) {
				$isValid = true;
			}
		}

		return $isValid;
	}
public static function isCardToken ( $ param ) { $ isValid = false ; if ( isset ( $ param [ 'cardToken' ] ) ) { $ isTokenEmpty = CheckoutApi_Lib_Validator :: isEmpty ( $ param [ 'cardToken' ] ) ; if ( ! $ isTokenEmpty ) { $ isValid = true ; } } return $ isValid ; }
A helper method that check that check if token is set in payload
@param array $param
@return boolean
Simple usage:
CheckoutApi_Client_Validation_GW3::isCardToken($param)
A helper method that check that check if token is set in payload