Relocated $rules initialization so that array_intersect_key() can be used to auto hydrate