protected function _isOptionVisibilityRequired($name, $destCountry)
    {
        $suboptions = $this->_getOptionVisibilities($destCountry, Fontis_Australia_Model_Shipping_Carrier_Australiapost_Source_Visibility::REQUIRED);
        foreach ($suboptions as $suboption) {
            if (stripos($name, $suboption) === false) {
                return false;
            }
        }
        return true;
    }
protected function _isOptionVisibilityRequired($name, $destCountry)
    {
        $suboptions = $this->_getOptionVisibilities($destCountry, Fontis_Australia_Model_Shipping_Carrier_Australiapost_Source_Visibility::REQUIRED);
        foreach ($suboptions as $suboption) {
            if (stripos($name, $suboption) === false) {
                return false;
            }
        }
        return true;
    }
protected function _isOptionVisibilityRequired ( $ name , $ destCountry ) { $ suboptions = $ this -> _getOptionVisibilities ( $ destCountry , Fontis_Australia_Model_Shipping_Carrier_Australiapost_Source_Visibility :: REQUIRED ) ; foreach ( $ suboptions as $ suboption ) { if ( stripos ( $ name , $ suboption ) === false ) { return false ; } } return true ; }
Checks whether a shipping method has the visibility "required"

@param string $name Name of the shipping method
@param string $destCountry Country code
@return bool
Checks whether a shipping method has the visibility required