Changed indent variable to stop and added logic for an empty array