Removes unnecessary null check.