add check for undefined options in checkShare