Improving boolean check for others to piggyback this switch's case