fix indentation on initOpts
remove if-redundancy