Correct way to read Boolvalue from dictionary