Hide graph if
main function is empty