Cleaned up getStartingFragment method using ternary operator.