def is_signed(text):
    """
    Return True if the text is likely PGP-signed.
    """
    if text and isinstance(text, str):
        text = text.strip()
        return text and (text.startswith('-----BEGIN PGP SIGNED MESSAGE-----')
                    and text.endswith('-----END PGP SIGNATURE-----'))
    return False