Move check_df up since it is similar to above methods