Check if columns are present in dataframe
check_cols(df, cols)
df
cols
dataframe Dataframe
Useful links