Made array membership checks faster