Some good ole PHP utils functions and classes