Revert "Fix IsPublicFunction.Evaluate according to the report of @bignoncedric"

This reverts commit 42d32e80debb395034c8cb321a79cc4d5313a3a0.