Use explicit null checks instead of Try()