Page::isEmpty($field[,$field,...])

Version 4

Check if field(s) has no value

Return TRUE, if all fields are empty.

Return value

Bool

Arguments

$field
Technical name of the field

Full documentation

Check if either phone or email is given:

if ( $Order->isEmpty('phone','email') ){
    // No contact information found.
}