Use isPlainObject instead of isObject

Becouse isObject([1,4]) == true, better use isPlainObject method for detect options in first argument.