directoryHelper = $directoryHelper; } /** * Check if postcode is valid * * @param string $countryId * @param string $postcode * @return bool */ public function isValid($countryId, $postcode) { return $this->directoryHelper->isZipCodeOptional($countryId) || !empty($postcode); } }