Add is_loaded utility function