function isIfStatement(value) {
  const ifStatementPattern = /if\s*\(\s*(.*)\s*\)/g;
  return ifStatementPattern.test(value);
}
Checks if the value is a if statement.
@param {unknown} value
@returns {value is IfStatement}