How to determine if the lookup dropdown does not have a selected value

How to determine if the lookup dropdown does not have a selected value

I have a master form:
Branch Master
- ID
- Branch Name

Another form - Account
Name on Account
Branch (Lookup from Account to Branch Master on ID column of Branch Master)

On the  Account form, when I write this code
input.Branch != null to determine that the lookup dropdown has a value, I can't even save the script.

How do I determine if a selection has been (or a selection has not been made) made on a lookup dropdown?