SSL if else statement