Put comment before if instead of inside condition