Why not have $value=null and check if value is not null? Setting a null parameter seems like an edgecase not worth handling.