Check if input is object