Coding standards: don't set variable and check value in same line