Check if a token was found prior to comparing it