protected function isAllowedApplyVatInvoicing(Gpf_Db_Table_UserAttributes $userAttributes) { try { if ($userAttributes->getAttribute("apply_vat_invoicing") == Gpf::YES) { return true; } } catch (Gpf_Data_RecordSetNoRowException $e) { return false; } return false; }