Check if the df arguments are valid, makes them into a data.frame if they are a list. Internal function.
Useful links