refactoring: simplify boolean expression
refactoring: use Observable.from() instead of Observable.just()