Checking array of values against a white-list