Shame on PHP for no friendly classes