Throw error when parent function does not exist