Exercise. Pullbacks and cartesian maps [frct-001Y]

Prove that the fundamental self-indexing \underline {B} is a cartesian fibration if and only if B has pullbacks.