Use the option type instead of calling hasattr()