check to make sure the function exists. 

Signed-off-by: Matt Barba <matt@placester.com>