PHP-868: Method to check if string is a valid ObjectId