Prevent React warning about returning false