add a call for checking index existence