Little refactor on RealmQuery
Use constant instead of boolean value to make code more readable
Merge pull request #563 from leonardoxh/master

Remove duplicate code in RealmQuery.