fix: array breaks when passed to resource
When using related resources, passing in as an array and looking for mapped fields, it breaks as cannot call getAttribute on an array only an object:
TODO - V5 - make sure to not pass as a cast array until later in the process