added mock as requirement;return empty array on slice range out of bounds