Check if Page is Public

Permalink
I am programmatically displaying a list of child pages, but I need to not show pages that haven't been published.

foreach($children as $child){
    if(Page::getByID($child)->SOMESORTOFCODEHERETOCHECKIFITSPUBLISHED){
      //DO STUFF
    }
}


What can I use to check if it's published?

Page::getByID($child)->getCollectionDatePublic('F j, Y')

Still returns a date even when not published. So that doesn't help.