When you throw an out of bounds exception, pass the name of the field that is out of bounds:
https://github.com/phpbb-extensions/boardrules/pull/22/files#diff-c80dba27e4e9b34c649a653474a0d606R117

You could probably just return an empty array here instead and we wouldn't need to throw an exception.