Removed unnecessary else condition.