Adding the if clause for the option param