You can just `return !!transitionStatus` (!! is cast to boolean)