Check for function not file

As it says...