(b) (i) a worker, other than a frontier worker, who is partially, intermittently or wholly unemplyed and who remains available to his employer or to the employment services in the territory of the competent State shall receive benefits in accordance with the legislation of that State as though he were residing in its territory; these benefits shall be provided by the competent institution.
(b) however, if the family benefits are not applied by the person to whom they should be provided for the maintenance of the members of the family, the competent institution shall discharge its legal obligations by providing the said benefits to the natural or legal person actually maintaining the members of the family, on application by and through the agency of the institution of their place of residence or of the institution or body appointed to that end by the competent authority of their country of residence.