Removed redundant checks on object != null. log(...) does it anyway