Exchanging empty() for falsy check for pre-5.5 compatibility.