more correct way to check existing columns