DRY-ing up some $where_arr_var

added private function to verify if $where_arr_var is array or var and send the right $this->db->where