NOTICEFIX: pass-by-reference & array_pop