Check if sharing is enabled, if not return an empty array. Signed-off-by: brantje <brantje@gmail.com>