test php-md with normal if-else instead of ternaries