tener la cabeza bien amueblada

Verb

 * 1)  to have a good head on one's shoulders