Use an else-if instead of two ifs.

The two conditions aren't technically related, but they are mutually exclusive
(a call can't be both a call to require and a call to foo=).