you need to compare to `undefined` without quotes (or to use typeof and quotes)

also, please put the opening curly brace here, not on the next line