Common php utils built on top of library functions