Small optimisations for index checking