[UPDATE] no php notice when array is empty