Error checking is cleaner