Justin Bieber appears in court in Miami