Fixing check for require.