Use guard if style to clear code