only process datasource injection if data is not empty list