Modified if statement to inline