Checks if the right object