Use 'array_lengthof' as possible to avoid magic numbers