. "r provision of this code, if the person or persons required to sign a statement consenting to the issuance of a student license and accepting liability as provided in subdivision (b) are not residents of this state and the student resides at the school, or the student is a foster child with no parents or guardian available to sign this statement, the application may be accepted if the principal of" . . . .