Improve handling of empty function bodies