Fix: Check existence of options objects

Check if options were passed before attempting to access the objects'
properties in order to prevent throwing exceptions.