If and else condition in PHP with example