updated the result check because now we're returning booleans as we expect;
casting the pref_user to a zero-length string to prevent nulls from sneaking in;