Apart from that there's no easy way to do this so preventing an empty  function from running could be slower than the current  implementation