Dev: Add new _fnDataSource function to get the data source and simplify
some logic conditions