unless (defined($id)) { # else-block } else { # if-block }