Check if history functions are undefined