cleaned up Realm constructor, added IsCallable