Private function to check snapshot

def _get_snapshot(name, suffix, array):
    '''Private function to check snapshot'''
    snapshot = name + '.' + suffix
    try:
        for snap in array.get_volume(name, snap=True):
            if snap['name'] == snapshot:
                return snapshot
    except purestorage.PureError:
        return None