Update graphite check to handle zeros