Does mental illness occur in children and if yea how is it detected?

Does mental illness occur in children and if yea how is it detected?