less assignment in if stmt = better code