check for required array bounds