def is_non_empty_array(variable):
# Check if the variable is not None and is a list with at least one element
return variable is not None and isinstance(variable, list) and len(variable) > 0
# Example usage:
variable1 = [1, 2, 3]
variable2 = []
variable3 = None
print(is_non_empty_array(variable1)) # Output: True
print(is_non_empty_array(variable2)) # Output: False
print(is_non_empty_array(variable3)) # Output: False
ZGVmIGlzX25vbl9lbXB0eV9hcnJheSh2YXJpYWJsZSk6CiAgICAjIENoZWNrIGlmIHRoZSB2YXJpYWJsZSBpcyBub3QgTm9uZSBhbmQgaXMgYSBsaXN0IHdpdGggYXQgbGVhc3Qgb25lIGVsZW1lbnQKICAgIHJldHVybiB2YXJpYWJsZSBpcyBub3QgTm9uZSBhbmQgaXNpbnN0YW5jZSh2YXJpYWJsZSwgbGlzdCkgYW5kIGxlbih2YXJpYWJsZSkgPiAwCgojIEV4YW1wbGUgdXNhZ2U6CnZhcmlhYmxlMSA9IFsxLCAyLCAzXQp2YXJpYWJsZTIgPSBbXQp2YXJpYWJsZTMgPSBOb25lCgpwcmludChpc19ub25fZW1wdHlfYXJyYXkodmFyaWFibGUxKSkgICMgT3V0cHV0OiBUcnVlCnByaW50KGlzX25vbl9lbXB0eV9hcnJheSh2YXJpYWJsZTIpKSAgIyBPdXRwdXQ6IEZhbHNlCnByaW50KGlzX25vbl9lbXB0eV9hcnJheSh2YXJpYWJsZTMpKSAgIyBPdXRwdXQ6IEZhbHNl