Fixed `isProcedure` to work with new func types