Use double-quotes instead of single-quotes
Fix closest method: return empty array if element does not have any closest
Add _isFunction private method
Fix closest method: return document if it is selector