why you added this if condition ?