14. Certain measures or activities not prohibited.
(1) Nothing in this Act shall be construed as prohibiting-
(a) the taking of any action that is required by or under-
(i) any enactment or order of a court,
(ii) any act done or measure adopted by the European Union, by the European Communities or institutions thereof or by bodies competent under the Treaties establishing the European Communities, or
(iii) any convention or other instrument imposing an international obligation on the State,
(aa) on the basis of nationality -
(i) any action taken by a public authority in relation to a non-national -
(I) who, when the action was taken, was either outside the State or, for the purposes of the Immigration Act 2004, unlawfully present in it, or
(II) in accordance with any provision or condition made by or under any enactment and arising from his or her entry to or residence in the State,
or