I guess this should be `if (!$id)` rather than null to catch empty strings?