Why not just use `if (empty($name))` ?