Suggestion on index.php

Hi dude. its better to use if or else to check is evrything ok for mellat ... and if is ok so now go to payment ... its better to chenge or develop the send request code ...