What would be the alternative to && !(Object.keys(dataSource.attributes).length === 0));
the following validation, any ways of this to be a map of validation / title / render
isProductAttributesTabEmpty() {
const dataSource = this.getDataSource();
return !(dataSource
&& dataSource.attributes
&& !(Object.keys(dataSource.attributes).length === 0));
}