Fix 3.4 compatibility issue

@whmii Yes, but I prefer to split them into 2 functions; that way we can use both (checking for not belong) and making *slightly* less offending ;)