Use php 5.4 closures $this where safe to