Check if receiving an object or a user id