0
You haven't provided enough detail. It certainly is legal if not smoking is a condition of employment.
immunity
Must be in good, serviceable condition
You mean this: if;
Syntax error.
Or you mean: if (condition);
Perfectly legal; if the condition is true, nothing happens. If the condition is false, the else-statement is executed (if there is an else-statement).