Whenever a party initially appears before the court without an attorney in any criminal proceeding where the right to counsel attaches, the judge shall advise the party, or if the party is a juvenile or is under guardianship, the party and a parent or legal guardian, where appropriate, that (1) the party has a right to be represented by an attorney in the proceeding and (2) if the court determines