For the purposes of this Act an offence has a terrorist connection if the offence—
(a)is, or takes place in the course of, an act of terrorism, or
(b)is committed for the purposes of terrorism.