Can't cast String [] to a boolean