Changed bool and bool[] types for the correct ones: boolean and boolean[]