Removed unneeded if.