Not really mistake in this commit, but there should be a parenthesis around the assignment here, like:

    if ( !( $realPath = realpath( $mountPointPath ) ) )

or maybe even more readable:

    if (  ( $realPath = realpath( $mountPointPath ) ) == false )