Added ability for has() to take an object