Just a quick one today, if you find you are having to use nested Set::Extracts or nested foreach loops in your code to extract data then it is possible you have some incorrect associations.
For instance if you array looks like this:
Array ( [0] => Array ( Array ( [0] => Array (
It is possible that you have a hasMany where you should have an hasOne or belongsTo association.