space before if for readability