more php like array management