This is incorrect. Aliases are optional so this should read `$checkAlias = null`.