Use `CheckSymbolExists` instead of `CheckFunctionExists`
An attempt to fix #2772 (closed).
I am not completely sure if the problem is coming from check_symbol_exists
, but given the warning on the CheckFunctionExists
documentation perhaps it is worth using the apparently more robust CheckSymbolExists
?