how can i check if function exists in CI
none of them worked
on the previous one it says undefined property direction
second one returns false
i searched the forum couldn’t find the solution.
i am not that much into classes, so get hard time, sometimes