Added single line if statement preference.