should have been checking for the adapter property here, not the adapter method.