Use the existent macros to check for handles.