Check for nil works in sweeper