Service definitions are a Hash, not an Array.  Loop through them as such.