Removed an unnecessary if check