fixing bash else handling, i guess bash if cant be null