Allow to use array as collection