How can I create two variables from a source where included files do or do not exist?

As an example, in Apache configuration, files can be included but it is possible that the files do not exist.

Apache `httpd.conf` snippet:

```
Include /var/site/conf/apache/1.conf
Include /var/site/conf/apache/2.conf
Include /var/site/conf/apache/3.conf
Include /var/site/conf/apache/4.conf

```

In the include example above, `/var/site/conf/apache/4.conf` does not exist.

In auditing the Apache config, how can I list the includes that do not exist and continue to process the config files that does?

So far I've got the code below but I'm missing something that would make this work:

```sh
_Apache_includes=$(cat /etc/httpd/conf/httpd.conf | grep unique_site_config | cut -f 2 -d " ")
if test -f "$_Apache_includes"; then
    $_Apache_includes=$_Apache_does_exist
else
    $_Apache_includes=$_Apache_not_existing
fi
echo "$_Apache_does_exist exist"
echo "$_Apache_not_existing does not exist"

for _Config_file_check in $_Apache_includes; do
    _Config_domains=$(ls -la $_Apache_does_exist | grep -e ServerName -e ServerAlias | grep -v "#" | sed "s/^[ \t]*//" | cut -f 2 -d " " | grep -v ^$ | sort -u )
    _Config_ip=$(getent hosts $_Config_domains | awk '{ print $1 }')
    echo "Config File: $_Config_file" - $_Config_domains - $_Config_ip >> /root/server-fixes/audit/domains/domain_list_$_date_now.txt
    echo
done

```

Expected output:

File list of missing Includes:

/var/site/conf/apache/4.conf

List of correctly configured domains:

Config File: /var/unique\_site\_config/conf/apache/1.conf - example.com - 93.184.216.34

Config File: /var/unique\_site\_config/conf/apache/1.conf - www.example.com - 93.184.216.34

Config File: /var/unique\_site\_config/conf/apache/2.conf - example2.com - 173.231.210.103

Config File: /var/unique\_site\_config/conf/apache/3.conf - example3.com - 23.20.239.12