eusure directory exist and parse string to boolean