AL/Get-IsALRepo.ps1

<#
 .Synopsis
  Validates whether the folder contains an AL project
 .Description
  Validates whether the folder defined in the SourcePath contains an AL project based on the existance of app.json
 .Parameter Path
  Path to the current project
 .Example
  $Ok = Get-IsALRepo -Path "C:\Installs"
#>

function Get-IsALRepo {
    Param(
        [Parameter(Mandatory=$false)]
        [string]$Path = (Get-Location)
    )

    Test-Path (Join-Path $Path 'app.json')
}