PHP5.3 compatible array access in ResourceMetadataSpec