Defenses for weapons offences may include factual innocence or challenging the legality of the search.