typo - missing brackets caused wrong interpretation of boolean check for defined?