[Teleports] Fixed function_exists() check