Use isPlainObject instead if isObject

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