CREATE OR REPLACE FUNCTION public.website_exists(in_website_name text) RETURNS boolean
	LANGUAGE plpgsql STRICT
	AS $$
BEGIN
	PERFORM * FROM website w
	WHERE w.name = in_website_name;

    IF FOUND THEN
        RETURN 1;
	ELSE
		RETURN 0;
    END IF;
END;
$$;
