Added check for php-imap