return NULL on array out of bound access instead of throwing an exception