Missed checking if options isObject before attempting to access property