If options isn't an object, it will give an error on the next step, thats why i choose to evaluate if it is an object or non at first.