Be more specific with the check of the options type