Removed unneeded null check.