Added some extra logic to check the ignore options have been set before using them