Cleaned up duplication of "xxxExists" methods in models/funcs.php