You can be the only one in the plane. If you're a student pilot, it's illegal to have anyone else in the plane. (and unethical, I think)(and the insurance company wouldn't pay)(and if you were my student, I'd drop you like rock).
There is something about logging solo in a twin even though your CFI is onboard, I think, for insurance reasons.