in order to avoid hardcoded numbers I would recommend you test against the array length