American Airlines operate the rule of 2 always in the cockpit. Even Ryanair operate this policy. If one of the pilots leave then a member of Cabin Crew goes in until they return.
Such a simple rule which in all probability would have saved this mass murder happening