A more thorough option check to avoid errors