[BUGFIX] Added handling for array in findOneByXXX result