How to Check if post / page has a gallery

internal_server_error<![CDATA[WordPress &rsaquo; Error]]> 500