def is_non_empty_array(variable):
"""Checks if a variable is an array (list or tuple) with at least one element.
Args:
variable: The variable to check.
Returns:
True if the variable is a non-empty array, False otherwise.
"""
return isinstance(variable, (list, tuple)) and len(variable) > 0
# Example usage:
my_array = [1, 2, 3]
empty_array = []
none_variable = None
print(is_non_empty_array(my_array)) # Output: True
print(is_non_empty_array(empty_array)) # Output: False
print(is_non_empty_array(none_variable)) # Output: False
ZGVmIGlzX25vbl9lbXB0eV9hcnJheSh2YXJpYWJsZSk6CiAgIiIiQ2hlY2tzIGlmIGEgdmFyaWFibGUgaXMgYW4gYXJyYXkgKGxpc3Qgb3IgdHVwbGUpIHdpdGggYXQgbGVhc3Qgb25lIGVsZW1lbnQuCgogIEFyZ3M6CiAgICB2YXJpYWJsZTogVGhlIHZhcmlhYmxlIHRvIGNoZWNrLgoKICBSZXR1cm5zOgogICAgVHJ1ZSBpZiB0aGUgdmFyaWFibGUgaXMgYSBub24tZW1wdHkgYXJyYXksIEZhbHNlIG90aGVyd2lzZS4KICAiIiIKICByZXR1cm4gaXNpbnN0YW5jZSh2YXJpYWJsZSwgKGxpc3QsIHR1cGxlKSkgYW5kIGxlbih2YXJpYWJsZSkgPiAwCgojIEV4YW1wbGUgdXNhZ2U6Cm15X2FycmF5ID0gWzEsIDIsIDNdCmVtcHR5X2FycmF5ID0gW10Kbm9uZV92YXJpYWJsZSA9IE5vbmUKCnByaW50KGlzX25vbl9lbXB0eV9hcnJheShteV9hcnJheSkpICAjIE91dHB1dDogVHJ1ZQpwcmludChpc19ub25fZW1wdHlfYXJyYXkoZW1wdHlfYXJyYXkpKSAgIyBPdXRwdXQ6IEZhbHNlCnByaW50KGlzX25vbl9lbXB0eV9hcnJheShub25lX3ZhcmlhYmxlKSkgICMgT3V0cHV0OiBGYWxzZSA=