fix offsetExists, how didn't I notice this