https://www.php-resource.de/forum/php-developer-forum/60801-if-script-problem