Used strict mode for in_array checks to improve performance by up to 2.2x compared to non-strict matching