PHP Looping with Condition - Task One

Remove Notice Undefined Index