Checking Index validity