It is a defence in any proceedings for an offence under this Part for a person to prove that he or she (a) could not, by the exercise of reasonable diligence, have complied with the requirement to which the charge relates; or(b) complied with the requirement to the extent of their ability to do so.