Finds whether a variable is an object