have a head upon one's shoulders

  1. zeki/akıllı/kafalı olmak.