diff --git a/push_notifications.module b/push_notifications.module
index 7e4efea..55238ec 100644
--- a/push_notifications.module
+++ b/push_notifications.module
@@ -1012,10 +1012,12 @@ function push_notifications_gcm_send_message($tokens, $payload) {
  *
  * @link https://firebase.google.com/docs/cloud-messaging/
  *
- * @param $tokens
- *   Array of fcm tokens
- * @param $payload
- *   Payload to send.
+ * @param array $tokens
+ *   Array of FCM tokens
+ * @param array $payload
+ *   Payload to send
+ * @param array $options
+ *   Optional array as options (see FCM documentation)
  *
  * @return
  *   Array with the following keys:
@@ -1024,8 +1026,8 @@ function push_notifications_gcm_send_message($tokens, $payload) {
  *   - success         (# boolean)
  *   - message         (Prepared result message)
  */
-function push_notifications_fcm_send_message($tokens, $payload, $options = array()) {
-  if (!is_array($tokens) || empty($payload) || (is_array($tokens) && empty($tokens))) {
+function push_notifications_fcm_send_message(array $tokens, array $payload, array $options = array()) {
+  if (empty($payload) || empty($tokens)) {
     return FALSE;
   }
 
@@ -1051,7 +1053,7 @@ function push_notifications_fcm_send_message($tokens, $payload, $options = array
     // Create a token bundle.
     $bundle_tokens = array_slice($tokens, $i * 1000, 1000, FALSE);
 
-    // Convert the payload into the correct format for C2DM payloads.
+    // Convert the payload into the correct format for FCM payloads.
     // Prefill an array with values from other modules first.
     $data = array();
     foreach ($payload as $key => $value) {
@@ -1142,12 +1144,7 @@ function push_notifications_fcm_send_message($tokens, $payload, $options = array
  *
  * @return mixed Array of results, null if no entries.
  */
-function push_notifications_get_tokens($filters = array(), $raw = FALSE) {
-  // Validate format of filters argument.
-  if (!is_array($filters)) {
-    return FALSE;
-  }
-
+function push_notifications_get_tokens(array $filters = array(), $raw = FALSE) {
   // Select all tokens for this type id.
   $query = db_select('push_notifications_tokens', 'pnt');
   $query->fields('pnt');
@@ -1158,7 +1155,7 @@ function push_notifications_get_tokens($filters = array(), $raw = FALSE) {
   }
 
   // Filter by language, if required.
-  if (array_key_exists('language', $filters) && is_string($filters['language'])) {
+  if (array_key_exists('language', $filters) && strlen($filters['language']) > 0) {
     $query->condition('pnt.language', $filters['language']);
   }
 
@@ -1243,12 +1240,10 @@ function push_notifications_used_languages() {
     $used_languages[$record->language] = $languages[$record->language][0];
   }
 
-  if (!empty($used_languages)) {
-    // Sort the languages alphabetically.
-    $used_langauges = asort($used_languages);
-    // Add an "All" option.
-    array_unshift($used_languages, 'All Recipients');
-  }
+  // Sort the languages alphabetically.
+  asort($used_languages);
+  // Prepend an "All" option.
+  $used_languages = array('' => t('No restriction')) + $used_languages;
 
   return $used_languages;
 }
