tiny microoptimizations by removing superfluous return statements