Ternary operator not functioning correctly for some reason.  FYI @GaryJones.