Removed unnecessary if condition