[COOK-2646] Fix invalid check for options