PERF: put check in early