Fixed the inArray helper so it works without passing in keys.