Avoid checking an empty array when loading plugins