This check was previously only performed on functions not function pointers. Co-authored-by: Folkert <folkert@folkertdev.nl>