Checked if item in slot is null to prevent null pointer exceptions.