One-lined the if
Added spaces around operators for readability