Added $all argument to method getFirstBy(…)