test if native function exists before to use it