private function checkDataSet(array $data, $key, $isNew)
    {
        $keyExists = array_key_exists($key, $data);

        if (($isNew && !($keyExists && $data[$key] !== null)) || (!$keyExists || $data[$key] === null)) {
            throw new MissingShippingAttributeException($key);
        }

        return $keyExists;
    }
private function checkDataSet(array $data, $key, $isNew)
    {
        $keyExists = array_key_exists($key, $data);

        if (($isNew && !($keyExists && $data[$key] !== null)) || (!$keyExists || $data[$key] === null)) {
            throw new MissingShippingAttributeException($key);
        }

        return $keyExists;
    }
private function checkDataSet ( array $ data , $ key , $ isNew ) { $ keyExists = array_key_exists ( $ key , $ data ) ; if ( ( $ isNew && ! ( $ keyExists && $ data [ $ key ] !== null ) ) || ( ! $ keyExists || $ data [ $ key ] === null ) ) { throw new MissingShippingAttributeException ( $ key ) ; } return $ keyExists ; }
checks data for attributes
@param array $data
@param $key
@param $isNew
@return bool
@throws Exception\MissingShippingAttributeException
checks data for attributes