Why does this check for missing.empty() need to be removed?