test for df before evaling