title: To check if the list and dataframe is empty
body: <p>Is there a way to check if both list and dataframe is empty? I am using df.count() == 0 but is there a more efficient way to check the data frame and the list is empty.</p>