I get a notice of trying to find a property of non object each time I try to run the following query:
public function doesEmailExist($dbvars){ $th