Should be moved outside the `if ( is_object` so it will always be checked.