Adding function check

Checking function exists to prevent fatal errors on subprojects that contain the plugin.