style guide refactoring, && for conditional function calls