CHeck to see if the column names/indices entered is valid for the dataframe given. This is an internal function
Useful links