Fix check for required options