If we set the title to `var title = profile && profile.displayName;` this eliminates the `else` in the if structure.