Properly check existence of the objectId.