Create a helper to check if memory instance is already attached to acl.

Signed-off-by: crynobone <crynobone@gmail.com>