Both are the same sentence if ‘it’ points to a thing described by a masculine noun in Gaelic. There is no neuter ‘it’ in Gaelic, so a bheil e glan? can mean both is he clean? or is it clean?; and a bheil i glan? can mean is she clean? as well as is it clean? too, if the noun in Gaelic is feminine.