Restore $resourceArray declaration