If you want to check if your address is null or equals to the 0 address, you have to use the
address(0) keyword, like in the following example:
contract TestContract {
function isAddressEmpty(address addr) returns (bool) {
return (addr == address(0));
}
}