IN PROGRESS - issue YZABP-26: CP - Goals pages 
https://illuminadev.co.uk/jira/browse/YZABP-26

- Bail out of the loop after finding the parent, rather than continuing
and finding the wrong information
- Refactor the attribute extraction
- Check for the attribute alternative when checking for the namespaced
alternative
- If already in the wrapper use the child data, not the wrapper data
- Check the mapped data is an array before treating it as such