Check for array before resolving relations